addMovement

Add a user's movement to the tracker.

For pointer events, you should call this for the initial ACTION_DOWN, the following ACTION_MOVE events that you receive, and the final ACTION_UP. You can, however, call this for whichever events you desire.

Parameters

tracker

The VelocityTracker to add the movement to.

event

The MotionEvent you received and would like to track.